package BDLayer;

import java.util.List;

import modelLayer.Pallet;

public interface IFDBPallet {
	
	//return list of type Pallet
	public List<Pallet> getAllPallet(boolean retriveAssociation);
	
	//return an object of type Pallet by palletID
	public Pallet findPalletByID(int palletID, boolean retriveAssociation);
	
	//return an object of type Pallet by batchNo
	public Pallet findPalletByBatchNo(String batchNo, boolean retriveAssociation);
	
	//return an object of type Pallet by storeRef
	public Pallet findPalletByStore(String storeRef, boolean retriveAssociation);
	
	//return an object of type Pallet by ProductID
	public List<Pallet> findPalletByProductID(String prID, boolean retriveAssociation);
	
	//return 1 if insert is ok, -1 if not
	public int insertPallet(Pallet paObj, boolean retriveAssociation) throws Exception;
	
	//return 1 if update is ok, -1 if not
	public int updatePallet(Pallet paObj, boolean retriveAssociation) throws Exception;
	
	//return 1 if delete is ok, -1 if not
	public int deletePallet(Pallet paObj, boolean retriveAssociation) throws Exception;

}
